import { createSSRApp } from "vue";
import App from "./App.vue";
import "default-passive-events";
import uviewPlus from "uview-plus";
// 导入pinia
import pinia from "@/store";

// 引入全局样式
import "@/style/index.scss";

// import kkToast from "@/utils/kkToast";

export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus);
  // 使用pina
  app.use(pinia);
  // 挂载kkToast方法
  // app.config.globalProperties.$kkToast = kkToast;
  return {
    app,
  };
}
